<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Liste des applications</title>
</head>
<body>
<h2>Liste des applications</h2>
	<table border="1">
		<tr>
			<th>Nom</th>
			<th>Auteur</th>
			<th>Description</th>
			<th>Lien</th>
			<th></th>
		</tr>
		<c:forEach var="app" items="${apps}">
			<tr>
				<td><c:out value="${app.name}"></c:out>
				</td>
				<td><c:out value="${app.author}"></c:out>
				</td>
				<td><c:out value="${app.description}"></c:out>
				</td>
				<td><a href='<c:out value="http://${app.link}"></c:out>'><c:out value="${app.link}"></c:out></a>
				</td>
				<td><a href='<c:url value="/app/chooseinstall?appname=${app.name}"></c:url>'>Installer</a></td>
				<td><a href='<c:url value="/app/edit?name=${app.name}"></c:url>'>Modifier</a></td>
				<td><a href='<c:url value="/app/delete?name=${app.name}"></c:url>'>Supprimer</a></td>
			</tr>
		</c:forEach>
	</table>
	<br><a href='<c:url value="/app/edit"></c:url>'>Ajout</a>
</body>
</html>